var o;
Object.defineProperty(exports, "__esModule", {
  value: true
});
(function (e) {
  e[e.Five = 0] = "Five";
  e[e.Ten = 1] = "Ten";
})(o || (o = {}));
var def_RandomManager = /* */function () {
  function _ctor() {
    babel_classCallCheck(this, _ctor);
    this.randomPool = [];
  }
  return babel_createClass(_ctor, [{
    key: "initarry",
    value: function initarry(e, t) {
      t[0] = 1;
      for (var _n40 = 1; _n40 < e; _n40++) {
        t[_n40] = 0;
      }
    }
  }, {
    key: "getRandom",
    value: function getRandom(e) {
      if (null == this.randomPool[e] || this.randomPool[e].length < 1) {
        this.randomPool[e] = [];
        this.initarry(e, this.randomPool[e]);
      }
      var t = Math.random() * this.randomPool[e].length | 0;
      return 1 == this.randomPool[e].splice(t, 1)[0];
    }
  }], [{
    key: "getInstance",
    value: function getInstance() {
      null == this.instance && (this.instance = new _ctor());
      return this.instance;
    }
  }]);
}();
exports.default = def_RandomManager;
def_RandomManager.instance = null;